﻿//------------------------------------------------------------
// AureFramework
// Developed By Drunk Fish
// GitHub: https://github.com/YYYurz
// Gitee: https://gitee.com/yyyurz
//------------------------------------------------------------

namespace AureFramework.Entity
{
	public interface IEntityGroup
	{
		/// <summary>
		/// 获取实体组名称
		/// </summary>
		string Name
		{
			get;
		}

		/// <summary>
		/// 获取实体组中实体数量
		/// </summary>
		int EntityCount
		{
			get;
		}
		
		/// <summary>
		/// 获取或设置实体对象池容量
		/// </summary>
		int EntityPoolCapacity
		{
			get;
			set;
		}
		
		/// <summary>
		/// 获取或设置实体对象池过期时间
		/// </summary>
		float EntityPoolExpireTime
		{
			get;
			set;
		}
		
		/// <summary>
		/// 获取实体
		/// </summary>
		/// <param name="entityId"></param>
		/// <returns></returns>
		EntityLogic GetEntity(int entityId);
	}
}